package org.springblade.modules.admin.vo;

import cn.hutool.core.convert.Convert;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.admin.entity.MaintainPlanContent;

import java.math.BigDecimal;

/**
 * @author zcc
 * @version 1.0
 * @date 2021/8/26 10:10
 */
@Data
@ApiModel("业绩统计model")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PerformanceVo extends MaintainPlanContent {

	@ApiModelProperty("用户id")
	private Long userId;

	@ApiModelProperty("用户名称")
	private String userName;

	@ApiModelProperty("组名称")
	private String groupName;

	@ApiModelProperty("维保梯数")
	private Integer maintainElevatorCount = 0;

	@ApiModelProperty("工作量(安排)")
	private Integer planWorkload = 0;

	@ApiModelProperty("工作量(实际)")
	private BigDecimal actualWorkload = Convert.toBigDecimal(0);

	@ApiModelProperty("工作量(及时的)")
	private BigDecimal inTimeWorkload = Convert.toBigDecimal(0);

	@ApiModelProperty("工作量及时率")
	private BigDecimal inTimeWorkloadRatio = Convert.toBigDecimal(0);

	@ApiModelProperty("工作量推迟率")
	private BigDecimal workloadPostponeRatio = Convert.toBigDecimal(0);

	@ApiModelProperty("任务签到次数")
	private Integer planWorkSignCount = 0;

	@ApiModelProperty("签退次数")
	private Integer planWorkFinishCount = 0;

	@ApiModelProperty("工作时长")
	private BigDecimal workAvgMinute = Convert.toBigDecimal(0);

	@ApiModelProperty("法定出勤")
	private Integer workDayCount = 0;

	@ApiModelProperty("实际工作时长")
	private Integer actualWorkDayCount = 0;

	@ApiModelProperty("异常工作时长")
	private Integer unusualWorkDayCount = 0;
}
